import 'package:json_annotation/json_annotation.dart';

part 'video_content_bean.g.dart';

@JsonSerializable()
class VideoContentBean {
  String cartype;
  String coursename;
  String videoname;
  String videodesc;
  String videopath;
  String videocover;
  String deleteFlag;
  int id;
  int subject;
  int hourtime;

  VideoContentBean(
      {this.cartype,
      this.coursename,
      this.videoname,
      this.videodesc,
      this.videopath,
      this.videocover,
      this.deleteFlag,
      this.id,
      this.subject,
      this.hourtime});

  VideoContentBean.fromJson(Map<String, dynamic> json) {
    this.cartype = json['cartype'];
    this.coursename = json['coursename'];
    this.videoname = json['videoname'];
    this.videodesc = json['videodesc'];
    this.videopath = json['videopath'];
    this.videocover = json['videocover'];
    this.deleteFlag = json['deleteFlag'];
    this.id = json['id'];
    this.subject = json['subject'];
    this.hourtime = json['hourtime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['cartype'] = this.cartype;
    data['coursename'] = this.coursename;
    data['videoname'] = this.videoname;
    data['videodesc'] = this.videodesc;
    data['videopath'] = this.videopath;
    data['videocover'] = this.videocover;
    data['deleteFlag'] = this.deleteFlag;
    data['id'] = this.id;
    data['subject'] = this.subject;
    data['hourtime'] = this.hourtime;
    return data;
  }
}
